From cdbeef379ba49b1f430fddac3ed12e04da7e7264 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 6 Feb 2013 22:48:27 +0000 Subject: [PATCH] Better handling of strptime being in C, but used by C++. --- gpsbabel/strptime.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsbabel/strptime.h b/gpsbabel/strptime.h index 62a0c61df..3d37bfda7 100644 --- a/gpsbabel/strptime.h +++ b/gpsbabel/strptime.h @@ -27,7 +27,12 @@ /* * Version of "strptime()", for the benefit of OSes that don't have it. */ +#ifdef __cplusplus +extern "C" { +#endif extern char* strptime(const char*, const char*, struct tm*); - +#ifdef __cplusplus +} +#endif #endif -- 2.30.2